/*
 * *******************************************************************
 *   @项目名称: BHex Android
 *   @文件名称: TradableBean.java
 *   @Date: 19-6-23 上午11:21
 *   @Author: ppzhao
 *   @Description:
 *   @Copyright（C）: 2019 BlueHelix Inc.   All rights reserved.
 *   注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的.
 *  *******************************************************************
 */

package io.bhex.sdk.trade.futures.bean;

import java.io.Serializable;

public class TradableBean implements Serializable {

    /**
     * tokenId : BTC111
     * longAvailable : 10
     * shortAvailable : 20
     * longTotal : 90
     * shortTotal : 100
     * profitLoss : {"coinAvailable":10000.89,"margin":2000.89,"orderMargin":300.89,"realisedPnl":5000.89,"unrealisedPnl":200}
     *
     * {
     *         "tokenId":"BTC111", //期货 token id
     *         "longAvailable": "10",//多仓可平量
     *         "shortAvailable": "20",//空仓可平量
     *         "longTotal": "90",//多仓仓位
     *         "shortTotal": "100",//空仓仓位
     *         "profitLoss":{//盈亏信息
     *             "coinAvailable":10000.89,//可用保证金
     *             "margin":2000.89,//仓位保证金
     *             "orderMargin":300.89,//委托保证金
     *             "realisedPnl":5000.89,//已实现盈亏
     *             "unrealisedPnl":200.00//未实现盈亏
     *         }
     *     }
     */

    private String tokenId;
    private String longAvailable;
    private String shortAvailable;
    private String longTotal;
    private String shortTotal;
    private ProfitLossBean profitLoss;

    public String getTokenId() {
        return tokenId;
    }

    public void setTokenId(String tokenId) {
        this.tokenId = tokenId;
    }

    public String getLongAvailable() {
        return longAvailable;
    }

    public void setLongAvailable(String longAvailable) {
        this.longAvailable = longAvailable;
    }

    public String getShortAvailable() {
        return shortAvailable;
    }

    public void setShortAvailable(String shortAvailable) {
        this.shortAvailable = shortAvailable;
    }

    public String getLongTotal() {
        return longTotal;
    }

    public void setLongTotal(String longTotal) {
        this.longTotal = longTotal;
    }

    public String getShortTotal() {
        return shortTotal;
    }

    public void setShortTotal(String shortTotal) {
        this.shortTotal = shortTotal;
    }

    public ProfitLossBean getProfitLoss() {
        return profitLoss;
    }

    public void setProfitLoss(ProfitLossBean profitLoss) {
        this.profitLoss = profitLoss;
    }

    /**
     * 盈亏信息
     */
    public static class ProfitLossBean {
        /**
         * coinAvailable : 10000.89
         * margin : 2000.89
         * orderMargin : 300.89
         * realisedPnl : 5000.89
         * unrealisedPnl : 200
         */

//        private double coinAvailable;
//        private double margin;
//        private double orderMargin;
//        private double realisedPnl;
//        private int unrealisedPnl;

        private String coinAvailable;
        private String margin;
        private String orderMargin;
        private String realisedPnl;
        private String unrealisedPnl;

        public String getCoinAvailable() {
            return coinAvailable;
        }

        public void setCoinAvailable(String coinAvailable) {
            this.coinAvailable = coinAvailable;
        }

        public String getMargin() {
            return margin;
        }

        public void setMargin(String margin) {
            this.margin = margin;
        }

        public String getOrderMargin() {
            return orderMargin;
        }

        public void setOrderMargin(String orderMargin) {
            this.orderMargin = orderMargin;
        }

        public String getRealisedPnl() {
            return realisedPnl;
        }

        public void setRealisedPnl(String realisedPnl) {
            this.realisedPnl = realisedPnl;
        }

        public String getUnrealisedPnl() {
            return unrealisedPnl;
        }

        public void setUnrealisedPnl(String unrealisedPnl) {
            this.unrealisedPnl = unrealisedPnl;
        }
    }
}
